# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corepdf
pkgver=4.5.0
pkgrel=0
pkgdesc="A PDF viewer from C-Suite"
# limited by qt6-qtwebengine
arch="aarch64 armv7 x86 x86_64"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev qt5-qtwebengine-dev libcprime-dev poppler-qt5-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corepdf/-/archive/v$pkgver/corepdf-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No tests

build() {
	cmake -B build \
		-GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c27959570d99e62b0ee7c967992dddf16e57b634692170c4ca98c6ec87676478f4b45153fe891e7ba75fcb1548c6d2289a6092c0c894d558e2092d07d0676010  corepdf-4.5.0.tar.gz
"
